home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1988 / Oct⁄Nov 88 / Re- Persistent objects ⁄ < prev    next >
Encoding:
Text File  |  1991-03-06  |  986 b   |  29 lines  |  [TEXT/GEOL]

  1. Item    4236255                         21-Nov-88        18:01
  2.  
  3. From:   WETMORE1                        Wetmore, Russ
  4.  
  5. To:     D1220                           VarLite, Dev, Andy Meldrum
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Re: Persistent Objects
  10.  
  11. Andy -
  12.  
  13. You could use the same type of convention we used for reading/writing ‘view
  14. resources (which are essentially persistent objects.)  In your base class, you
  15. can define abstract methods for reading and writing out a particular object’s
  16. data.  Then, in the implementation of the methods at each class level, you can
  17. call the INHERITED read/write method to handle all of the superclass’ data, and
  18. then read/write your own.
  19.  
  20. At some higher level (perhaps an EventHandler method, as we implemented
  21. DoCreateViews) you can parse the particular objects (resources, perhaps?) and
  22. call the proper base read/write methods to do the actual work.
  23.  
  24. Examine IRes and WRes to see what I mean.
  25.         [ Russ ]
  26.  
  27.  
  28.  
  29.